package ml.kupin.cart.service;

import ml.kupin.common.utils.KuPinResult;
import ml.kupin.pojo.TbItem;

import java.util.List;

/**
 * Created by 小柯(Allen Kerr) on 17.5.7 17:18.
 */
public interface CartService {

    KuPinResult addCartItem(Long userId, Long itemId, int itemNum);

    List<TbItem> getCartItemList(Long userId);

    KuPinResult mergeCart(Long userId, List<TbItem> cartItemList);

    KuPinResult updateCartItemNum(Long userId, Long itemId, int itemNum);

    KuPinResult deleteCartItem(Long userId, Long itemId);

    KuPinResult clearCart(Long userId);
}
